package com.itheima.dfs.feign;

import com.itheima.common.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "leadnews-dfs",contextId = "dfsFeign")
public interface DfsFeign {
    /**
     * 批量下载文件
     * @param fileIds
     * @return
     */
    @PostMapping("/dfs/download")
    ResultVo<List<byte[]>> download(@RequestBody List<String> fileIds);
}
